home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / dev / lang / python020.readme < prev   
Text File  |  1995-11-07  |  9KB  |  189 lines

  1. Short:    Amiga Python '020 binary, Lib files.
  2. Author:   Guido van Rossum (Amiga port: Geoff Fellows)
  3. Uploader: "Geoff Fellows" <gfellows@csu.edu.au>
  4. Version:  0.1
  5. Type:     dev/lang
  6.  
  7. This is an Amiga port of the programming lanugage Python.
  8. It's only a straight port based on the POSIX version of Python v1.3,
  9. there are no Amiga-specifics yet.  There was one serious bug:
  10. floating-point numbers did't print properly, they work internally, but
  11. printed as "%.12g".  See the Amiga source distribution readme for
  12. more details.  The latest executable passes all tests.
  13.  
  14. Follows is the contents of the BLURB file.
  15.  
  16. What is Python?
  17. ---------------
  18.  
  19. Python is an interpreted, interactive, object-oriented programming
  20. language.  It incorporates modules, exceptions, dynamic typing, very
  21. high level dynamic data types, and classes.  Python combines
  22. remarkable power with very clear syntax.  It has interfaces to many
  23. system calls and libraries, as well as to various window systems, and
  24. is extensible in C or C++.  It is also usable as an extension language
  25. for applications that need a programmable interface.  Finally, Python
  26. is portable: it runs on many brands of UNIX, on the Mac, and on
  27. MS-DOS.
  28.  
  29. As a short example of what Python looks like, here's a script to
  30. print prime numbers (not blazingly fast, but readable!).  When this
  31. file is made executable, it is callable directly from the UNIX shell
  32. (if your system supports #! in scripts and the python interpreter is
  33. installed at the indicated place).
  34.  
  35. #!/usr/local/bin/python
  36.  
  37. # Print prime numbers in a given range
  38.  
  39. def main():
  40.     import sys
  41.     min, max = 2, 0x7fffffff
  42.     if sys.argv[1:]:
  43.         min = int(eval(sys.argv[1]))
  44.         if sys.argv[2:]:
  45.             max = int(eval(sys.argv[2]))
  46.     primes(min, max)
  47.  
  48. def primes(min, max):
  49.     if 2 >= min: print 2
  50.     primes = [2]
  51.     i = 3
  52.     while i <= max:
  53.         for p in primes:
  54.             if i%p == 0 or p*p > i: break
  55.         if i%p <> 0:
  56.             primes.append(i)
  57.             if i >= min: print i
  58.         i = i+2
  59.  
  60. main()
  61.  
  62.  
  63. ============================= Archive contents =============================
  64.  
  65. Original  Packed Ratio    Date     Time    Name
  66. -------- ------- ----- --------- --------  -------------
  67.     1334     728 45.4% 26-Jan-94 12:00:00 +BLURB
  68.     5750    2735 52.4% 26-Jan-94 12:00:00 +BLURB.LUTZ
  69.    11875    5010 57.8% 22-Oct-95 12:54:38 +BUGS
  70.      766     473 38.2% 26-Oct-95 16:03:48 +BUGS.Amiga
  71.    22307    8818 60.4% 06-Aug-94 12:00:00 +cheatsheet
  72.     1393     698 49.8% 22-Oct-95 14:54:32 +commands.py
  73.     1874     820 56.2% 22-Oct-95 14:54:32 +compileall.py
  74.     7426    2510 66.1% 22-Oct-95 14:54:32 +Complex.py
  75.     6351    2007 68.3% 22-Oct-95 14:54:32 +copy.py
  76.      823     416 49.4% 22-Oct-95 14:54:32 +dircache.py
  77.     5071    1761 65.2% 22-Oct-95 14:54:32 +dircmp.py
  78.      286     161 43.7% 22-Oct-95 14:54:32 +Makefile
  79.     2981     902 69.7% 22-Oct-95 14:54:32 +Queue.py
  80.     3536    1328 62.4% 22-Oct-95 14:54:32 +StringIO.py
  81.      689     261 62.1% 22-Oct-95 14:54:32 +UserDict.py
  82.     1270     396 68.8% 22-Oct-95 14:54:32 +UserList.py
  83.   282368  136176 51.7% 29-Oct-95 09:55:04 +python020
  84.     1010     788 21.9% 26-Oct-95 17:32:48 +python020.info
  85.    22964    9317 59.4% 22-Oct-95 12:54:42 +README
  86.     1518     862 43.2% 29-Oct-95 10:13:08 +README.Amiga
  87.    12060    5281 56.2% 22-Oct-95 12:54:42 +TODO
  88.     2346    1072 54.3% 22-Oct-95 14:54:32 +addpack.py
  89.    29617    7897 73.3% 22-Oct-95 14:54:32 +aifc.py
  90.     1426     717 49.7% 22-Oct-95 14:54:32 +anydbm.py
  91.     1654     759 54.1% 22-Oct-95 14:54:32 +base64.py
  92.     9455    2600 72.5% 22-Oct-95 14:54:32 +bdb.py
  93.    12118    3999 66.9% 22-Oct-95 14:54:32 +binhex.py
  94.      458     205 55.2% 22-Oct-95 14:54:32 +bisect.py
  95.     4442    1811 59.2% 22-Oct-95 14:54:32 +calendar.py
  96.     2090     880 57.8% 22-Oct-95 14:54:32 +cmd.py
  97.     1757     835 52.4% 22-Oct-95 14:54:32 +cmp.py
  98.     1885     903 52.0% 22-Oct-95 14:54:32 +cmpcache.py
  99.     2136     960 55.0% 22-Oct-95 14:54:32 +codehack.py
  100.     3082    1164 62.2% 22-Oct-95 14:54:32 +colorsys.py
  101.     2020     837 58.5% 22-Oct-95 14:54:32 +linecache.py
  102.      288     154 46.5% 22-Oct-95 14:54:32 +lockfile.py
  103.     3170    1206 61.9% 22-Oct-95 14:54:32 +multifile.py
  104.     1545     647 58.1% 22-Oct-95 14:54:32 +mutex.py
  105.     1552     604 61.0% 22-Oct-95 14:54:32 +newdir.py
  106.    12374    4066 67.1% 22-Oct-95 14:54:32 +ni.py
  107.     4664    1628 65.0% 22-Oct-95 14:54:32 +dis.py
  108.     3484    1239 64.4% 22-Oct-95 14:54:32 +dumbdbm.py
  109.     1608     730 54.6% 22-Oct-95 14:54:32 +dump.py
  110.      590     271 54.0% 22-Oct-95 14:54:32 +find.py
  111.    15087    4507 70.1% 22-Oct-95 14:54:32 +fmt.py
  112.     2207     904 59.0% 22-Oct-95 14:54:32 +fnmatch.py
  113.     7217    1859 74.2% 22-Oct-95 14:54:32 +formatter.py
  114.     4074    1479 63.6% 22-Oct-95 14:54:32 +fpformat.py
  115.     1778     780 56.1% 22-Oct-95 14:54:32 +getopt.py
  116.     1070     402 62.4% 22-Oct-95 14:54:32 +glob.py
  117.     1433     564 60.6% 22-Oct-95 14:54:32 +grep.py
  118.    11252    3258 71.0% 22-Oct-95 14:54:32 +ihooks.py
  119.      805     451 43.9% 22-Oct-95 14:54:32 +importall.py
  120.    16336    5348 67.2% 22-Oct-95 14:54:32 +pstats.py
  121.     2740    1226 55.2% 22-Oct-95 14:54:32 +pty.py
  122.      841     444 47.2% 22-Oct-95 14:54:32 +py_compile.py
  123.     6070    2231 63.2% 22-Oct-95 14:54:32 +pyclbr.py
  124.     2865    1148 59.9% 22-Oct-95 14:54:32 +quopri.py
  125.      276     177 35.8% 22-Oct-95 14:54:32 +rand.py
  126.     6378    2441 61.7% 22-Oct-95 14:54:32 +random.py
  127.     3136    1289 58.8% 22-Oct-95 14:54:32 +os.py
  128.       68      63  7.3% 22-Oct-95 14:54:32 +ospath.py
  129.     2664     894 66.4% 22-Oct-95 14:54:32 +packmail.py
  130.     5829    2207 62.1% 22-Oct-95 14:54:32 +pdb.doc
  131.    12296    3894 68.3% 22-Oct-95 14:54:32 +pdb.py
  132.    15038    5186 65.5% 22-Oct-95 14:54:32 +pickle.py
  133.     8780    2969 66.1% 22-Oct-95 14:54:32 +pipes.py
  134.     1286     630 51.0% 22-Oct-95 14:54:32 +poly.py
  135.     5297    1852 65.0% 22-Oct-95 14:54:32 +posixfile.py
  136.     7312    2880 60.6% 22-Oct-95 14:54:32 +posixpath.py
  137.    28408   10510 63.0% 22-Oct-95 14:54:32 +profile.doc
  138.    20334    7099 65.0% 22-Oct-95 14:54:32 +profile.py
  139.     1657     695 58.0% 22-Oct-95 14:54:32 +shutil.py
  140.     6577    2386 63.7% 22-Oct-95 14:54:32 +sndhdr.py
  141.     1708     730 57.2% 22-Oct-95 14:54:32 +stat.py
  142.     1723     681 60.4% 22-Oct-95 14:54:32 +statcache.py
  143.     6627    2259 65.9% 22-Oct-95 14:54:32 +string.py
  144.      968     465 51.9% 22-Oct-95 14:54:32 +symbol.py
  145.     4147    1461 64.7% 22-Oct-95 14:54:32 +tb.py
  146.     1219     593 51.3% 22-Oct-95 14:54:32 +tempfile.py
  147.     1575     706 55.1% 22-Oct-95 14:54:32 +regex_syntax.py
  148.      706     358 49.2% 22-Oct-95 14:54:32 +regexp.py
  149.     3981    1541 61.2% 22-Oct-95 14:54:32 +regsub.py
  150.     2576     835 67.5% 22-Oct-95 14:54:32 +repr.py
  151.     8487    2884 66.0% 22-Oct-95 14:54:32 +rexec.py
  152.     3741    1564 58.1% 22-Oct-95 14:54:32 +sched.py
  153.     8930    3008 66.3% 22-Oct-95 14:54:32 +sgmllib.py
  154.     3673    1206 67.1% 22-Oct-95 14:54:32 +shelve.py
  155.      679     412 39.3% 22-Oct-95 14:54:32 +token.py
  156.     1956    1002 48.7% 22-Oct-95 14:54:32 +tokenize.py
  157.     3168     975 69.2% 22-Oct-95 14:54:32 +traceback.py
  158.     1040     480 53.8% 22-Oct-95 14:54:32 +types.py
  159.     2318     872 62.3% 22-Oct-95 14:54:32 +tzparse.py
  160.      649     363 44.0% 22-Oct-95 14:54:32 +util.py
  161.     4637    1931 58.3% 22-Oct-95 14:54:32 +uu.py
  162.    16820    4161 75.2% 22-Oct-95 14:54:32 +wave.py
  163.     6577    2386 63.7% 22-Oct-95 14:54:32 +whatsound.py
  164.     2477    1073 56.6% 22-Oct-95 14:54:32 +whrandom.py
  165.     2200    1022 53.5% 22-Oct-95 14:54:32 +zmod.py
  166.     2412    1134 52.9% 22-Oct-95 14:54:32 +autotest.py
  167.     8920    2121 76.2% 22-Oct-95 14:54:32 +test_b2.py
  168.      207     113 45.4% 22-Oct-95 14:54:32 +test_builtin.py
  169.     1422     615 56.7% 22-Oct-95 14:54:32 +test_exceptions.py
  170.    10786    3575 66.8% 22-Oct-95 14:54:32 +test_grammar.py
  171.      590     283 52.0% 22-Oct-95 14:54:32 +test_md5.py
  172.      914     343 62.4% 22-Oct-95 14:54:32 +test_opcodes.py
  173.      106      89 16.0% 22-Oct-95 14:54:32 +test_operations.py
  174.     2708     788 70.9% 22-Oct-95 14:54:32 +test_pow.py
  175.     1117     454 59.3% 22-Oct-95 14:54:32 +test_rgbimg.py
  176.      500     280 44.0% 22-Oct-95 14:54:32 +test_select.py
  177.      910     433 52.4% 22-Oct-95 14:54:32 +test_signal.py
  178.     1698     844 50.2% 23-Oct-95 09:51:06 +testall.out.in
  179.     2697    1079 59.9% 22-Oct-95 14:54:32 +toaiff.py
  180.     4392    1079 75.4% 22-Oct-95 14:54:32 +test_audioop.py
  181.     9475    2424 74.4% 22-Oct-95 14:54:32 +test_b1.py
  182.      869     455 47.6% 22-Oct-95 14:54:32 +test_support.py
  183.     2347     778 66.8% 22-Oct-95 14:54:32 +test_thread.py
  184.     7655    1929 74.8% 22-Oct-95 14:54:32 +test_types.py
  185.     1698     844 50.2% 22-Oct-95 14:54:32 +testall.out
  186.      714     283 60.3% 22-Oct-95 14:54:32 +testall.py
  187. -------- ------- ----- --------- --------
  188.   851243  339316 60.1% 29-Oct-95 22:30:48   120 files
  189.